<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" >
<title>商品轮播</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Assets/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Assets/css/common.css"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Assets/css/thems.css">
<script type="text/javascript" src="__PUBLIC__/Assets/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){

	var main_h = $(window).height();
	$('.hy_list').css('height',main_h-45+'px');
	
	var main_w = $(window).width();
	$('.xjhy').css('width',main_w-40+'px');
	
	
	$(".tabBox .tabCont:first").css("display","block");
	$(".tabBox .tabNav li").click(function(){
		$(this).siblings("li").removeClass("now");
		$(this).addClass("now");
		$(this).parents(".tabBox").find(".tabCont").css("display","none");
		var i=$(this).index();
		$(this).parents(".tabBox").find(".tabCont:eq("+i+")").css("display","block");
	});
	
	$('.xial_m span').click(function(){
		$(this).parent('.xial_m').siblings('.xl_ctn').toggle();
	});

	/*js submit form action*/
	$("#add_course").click(function(){
		$("form").submit();
	});
});
</script>
    <style>
        .checkbox {
            width: 16px !important;
            height: 16px !important;
        }
    </style>
</head>

<body onLoad="Resize();">
<div id="right_ctn">
	<div class="right_m">
		<!--会议列表-->
        <div class="hy_list">
        	<div class="box_t">
            	<span class="name">添加轮播</span>
            </div>
            <div class="space_hx">&nbsp;</div>
            <!--MCU配置-->
            <div class="xjhy" style="padding:0px;">
                <!-- 添加 -->
                <div class="tabBox_t">
                    <div class="tabBox">
                        <ul class="tabNav">
                            <li class="now"><span>添加轮播</span></li>
                        </ul>
                        <div class="tabCont" style="display:block;">
                            <form method="post" action="{:U('doAddGoodsBanner')}" enctype="multipart/form-data">
                                <input type="hidden" name="id" value="{$_GET['id']}">
                                <ul class="hypz">
                                    <li class="clearfix">
                                        <span class="title">录播：</span>
                                        <input type="file" name="img">
                                    </li>
                                    <li class="tj_btn">
                                        <a id="add_course">提交</a>
                                    </li>
                                </ul>
                            </form>
                            <!--列表-->
                            <table cellpadding="0" cellspacing="0" class="list_hy">
                                <tr>
                                    <th scope="col">图片</th>
                                    <th scope="col">操作</th>
                                </tr>
                                <foreach name="list" item="v">
                                    <tr>
                                        <td><img src="__PUBLIC__/upload/goods_banner/{$v.img}"  style="max-height: 200px;max-width: 60%;" /></td>
                                        <td><a href="{:U('deleteImg',array('id'=>$v['id']))}">删除</a></td>
                                    </tr>
                                </foreach>
                            </table>
                            <!--列表-->
                        </div>
                	</div>
                </div>
            </div>
            <!--MCU配置-->
        </div>
        <!--会议列表-->
    </div>
</div>
</body>
</html>
<!-- 配置文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
<script>
var ue = UE.getEditor('content',{
    initialFrameHeight:500,
    zIndex:100
});
function auto_start(){
    var type=$("#on_off").val();
    if(type==1){
        $("#auto_on").css('display','block');
        $("#per_on").css('display','none');
    }
    if(type==2){
        $("#auto_on").css('display','none');
        $("#per_on").css('display','block');
    }
    if(type==''){
        $("#auto_on").css('display','none');
        $("#per_on").css('display','none');
    }
}

    function show_type(){
        var val = $("#cost_type").val();
        if(val==1){
            $("#laiyuan").css('display','block');
            $("#yuanjia").css('display','none');
            $("#free_end").css('display','none');
            $("#taojia").css('display','none');
            $("#node_free").css('display','none');
            $("#free_minutes").css('display','none');
        }else if(val==2){
            $("#yuanjia").css('display','block');
            $("#free_end").css('display','block');
            $("#taojia").css('display','block');
            $("#node_free").css('display','block');
            $("#laiyuan").css('display','none');
            $("#free_minutes").css('display','none');
        }
    }
</script>
